﻿using Pattern06原型模式.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pattern06原型模式.Interface
{
    public interface IPhone
    {
        string CPU { get; set; }
        int Memory { get; set; }
        Battery Battery { get; set; }

        void Write(string tag);
        /// <summary>
        /// 浅拷贝
        /// </summary>
        /// <returns></returns>
        IPhone Clone();
        /// <summary>
        /// 深拷贝
        /// </summary>
        /// <returns></returns>
        IPhone DeepClone();
    }
}
